<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加页面</title>
</head>
<body>

<form action="/updateUser" method="post">
    <!--      需要一个影藏域将id信息传递过去-->
    <input type="text" hidden="hidden" name="userId" th:value="${user.userId}">
    用户名:<input type="text" name="username" th:value="${user.username}"><br>
    密码:<input type="text" name="password" th:value="${user.password}"><br>
    <input type="submit" value="添加用户">
</form>

</body>
</html>